package com.xuan_poi.easy;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author renzhengxuan
 * @date 2021/4/12
 */
@Data
public class DemoData implements Serializable {
    @ExcelProperty(value = "字符串标题",index = 0)
//    @ColumnWidth(30)
    private String string;
    @ExcelProperty(value = "日期标题",index = 1)
//    @ColumnWidth(30)
    private Date date;
    //如果不想显示这个字段，千万记着加 @ExcelIgnore这个注解，不加的话会显示字段
    @ExcelProperty(value = "数据")
    private Double doubleData;
    /**
     * 忽略这个字段
     */
    @ExcelIgnore
    private String ignore;
}
